package com.bootdo.staticmask.dao;

import com.bootdo.staticmask.domain.MaskRuleDO;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * 
 * @author lkg
 * @email lkggod@163.com
 * @date 2018-04-25 11:27:35
 */
@Mapper
public interface MaskRuleDao {

	MaskRuleDO get(Long maskRuleId);
	
	List<MaskRuleDO> list(Map<String,Object> map);
	
	int count(Map<String,Object> map);
	
	int save(MaskRuleDO maskRule);
	
	int update(MaskRuleDO maskRule);
	
	int remove(Long mask_rule_id);
	
	int batchRemove(Long[] maskRuleIds);

	@Select("select `mask_rule_id`,`mask_name`,`mask_method`,`mask_function`,`mask_start`,`mask_len`,`update_time`,`update_user` from mask_rule")
	List<MaskRuleDO> findAll();
}
